package com.xd.clap.entity.response;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xd.clap.entity.request.ProductParam;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class OrderDetail {
    @ExcelProperty("订单id")
    private Integer id;
    @ExcelProperty("订单号")
    private String orderId;
    @ExcelProperty("手机号")
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("下单时间")
    private Date createTime;
    @ExcelProperty("订单状态")
    private int state;
    @ExcelProperty("商品总价")
    private Integer total;
    @ExcelProperty("商品列表")
    private List<ProductParam> productList;
}
